Crate fs2

Source
Expand description

Extended utilities for working with files and filesystems in Rust.

Structs§

  • FsStats contains some common stats about a file system.

Traits§

  • Extension trait for std::fs::File which provides allocation, duplication and locking methods.

Functions§

  • Returns the filesystem’s disk space allocation granularity in bytes. The provided path may be for any file in the filesystem.
  • Returns the available space in bytes to non-priveleged users in the file system containing the provided path.
  • Returns the number of free bytes in the file system containing the provided path.
  • Returns the error that a call to a try lock method on a contended file will return.
  • Get the stats of the file system containing the provided path.
  • Returns the total space in bytes in the file system containing the provided path.